﻿<UserControl x:Class="Net.Chirash.Twitter.TweetZone.WindowComponents.DirectMessageBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:my="clr-namespace:Net.Chirash.Twitter.TweetZone.WindowComponents"
             xmlns:my1="clr-namespace:Net.Chirash.Twitter.TweetZone.WindowComponents.MiniControls"
             mc:Ignorable="d" d:DesignHeight="90" d:DesignWidth="300"
             Loaded="UserControl_Loaded"
             Width="300">
    <UserControl.Resources>
        <my:DateTimeConverter x:Key="TimeConverter" />
    </UserControl.Resources>
    <UserControl.ContextMenu>
        <ContextMenu>
            <MenuItem Header="Delete" Name="DeleteMenuItem" Click="DeleteMenuItem_Click" />
        </ContextMenu>
    </UserControl.ContextMenu>
    <StackPanel>
        <StackPanel>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid Name="ThumbGrid" Width="64" Height="64" VerticalAlignment="Top">
                    <Image Height="64" Width="64" Name="ThumbImage" Stretch="Fill" />
                </Grid>
                <TextBox Name="StatusTextBox" Text="{Binding Text}" TextWrapping="Wrap" IsReadOnly="True" Width="236" Grid.Column="1"></TextBox>
            </Grid>
            <StackPanel Orientation="Horizontal" Height="26">
                <Label Content="{Binding User.ScreenName}" Name="ScreenNameLabel" Width="150" />
                <Label Content="{Binding CreatedAt,Converter={StaticResource TimeConverter}}" Name="PostedTimeLabel" Width="150" HorizontalContentAlignment="Right" FontSize="9" VerticalContentAlignment="Bottom" />
            </StackPanel>
        </StackPanel>
    </StackPanel>
</UserControl>
